package com.ruoyi.system.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户关注对象 user_follow
 *
 * @author ruoyi
 * @date 2024-07-28
 */
public class UserFollow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID（关注者） */
    private Long userId;

    /** 被关注者用户ID */
    private Long followedUserId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setFollowedUserId(Long followedUserId)
    {
        this.followedUserId = followedUserId;
    }

    public Long getFollowedUserId()
    {
        return followedUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("followedUserId", getFollowedUserId())
            .append("createTime", getCreateTime())
            .toString();
    }
} 